package com.example.swimmingpool.mapper.course;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.swimmingpool.entity.course.Course;
import com.example.swimmingpool.qo.course.CourseQo;
import com.example.swimmingpool.qo.course_selection.CourseSelectionQo;
import com.example.swimmingpool.vo.course.CourseQueryVo;
import com.example.swimmingpool.vo.course_selection.CourseSelectionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    IPage<CourseQueryVo> getCourses(IPage<CourseQueryVo> page, @Param("qo") CourseQo qo);

    Long getAccount(@Param("id") Long id);

    IPage<CourseQueryVo> getCoursesToUser(IPage<CourseQueryVo> page, @Param("ids") List<Long> ids);


    Long updateAccount(@Param("id") Long id);

}
